import mitt from "mitt";

interface ChatMessage {
  id: string;
  message: string;
}

type Events = {
  chatMessage: ChatMessage;
};

const emitter = mitt<Events>();

export default emitter;
